package com.demo.miaosha.Controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * ViewController
 * 视图管理器
 * @blame 吴经纶
 */
@Controller
public class ViewController {
    @GetMapping("/demo")
    public String  demo(Model model) {
        model.addAttribute("name", "Joshua");
        return "hello";
    }
}
